Scene_MusicMenu.prototype.createMusicListWindow = function() {
    this._musicListWindow = new Window_MusicMenuList(this._helpWindow, 680, 105);
    this._musicListWindow.opacity = 0;
    this._musicListWindow._scrollbar.setOffset(5);
    this.addWindow(this._musicListWindow);
    this._musicListWindow.setHandler('cancel', this.exitScene.bind(this));
    this._musicListWindow.setHandler('playsong', this.playSong.bind(this));

};


// 详细说明菜单
const SWDA_Scene_MusicMenu_createHelpWindow = Scene_MusicMenu.prototype.createHelpWindow
Scene_MusicMenu.prototype.createHelpWindow = function () {
    SWDA_Scene_MusicMenu_createHelpWindow.call(this)
    this._helpWindow.x = 0;
    this._helpWindow.y = Graphics.boxHeight - this._helpWindow.height
}

Scene_MusicMenu.prototype.create = function() {
    Scene_MenuBase.prototype.create.call(this);
    this.saveBgmAndBgs();
    AudioManager.fadeOutBgm(1);
    AudioManager.fadeOutBgs(1);  // 新增停止BGS
    this.createHelpWindow();
    this.createMusicListWindow();
};

Scene_MusicMenu.prototype.playSong = function() {
    var songData = this._musicListWindow.currentExt();
    this._musicListWindow.setCurrentPlaying(songData);
    AudioManager.playBgm(songData);
    this._musicListWindow.activate();
    this._musicListWindow.refresh();

};